<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page errorPage="errorPage.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试JavaBean</title>
</head>
<body>
<jsp:useBean id="Student"  scope="page" class="com.wx.bean.Student">

</jsp:useBean>

	学生名字：<%=Student.getName() %><br>
	学生年龄：<%=Student.getAge() %><br>
	学生班级：<%=Student.getClassno() %><br>
	<%Student.setName("李四"); %>
	学生新名字：<%=Student.getName() %><br>
	<jsp:setProperty property="age" name="Student" value="40"/>
	学生新年龄：<jsp:getProperty property="age" name="Student"/>
</body>
</html>